package com.simple.service;

import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

/**
 * 基础service 提供增删改查
 */
@Service
public interface BaseService<T> {
	
	public T saveAndFlush(T entity);
	
	public Page<T> findAll(Integer page,Integer limit,String...searchWord); 
	
	public void deleteAllById(String id);
	
	public T findById(Integer id);

}
